
<!DOCTYPE html>
<html lang="en">

<head>
    <title>登录界面</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link href="/css/bootstrap.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/bootstrap-responsive.css">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <script src="js/jquery-3.2.1.min.js"></script>
    <script type="text/JavaScript" src="js/bootstrap.js"></script>
    <style>
        #Card {
            border: 1px solid white;
            box-shadow: 0px 0px 70px 3px lightgray;
            margin-top: 10%;
            padding: 7% 10%;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="row">
            <div class="col-xs-3"></div>
            <div class="col-xs-6">
                <div id="Card">

                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" class="active">
                            <a href="#user" aria-controls="user" role="tab" data-toggle="tab">
                                <h4>用户登录</h4>
                            </a>
                        </li>
                        <li role="presentation">
                            <a href="#admin" aria-controls="admin" role="tab" data-toggle="tab">
                                <h4>管理员登录</h4>
                            </a>
                        </li>
                    </ul>

                    <!-- Tab panes user-->
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane active" id="user">
                            <br><br>
                            <form class="form form-horizontal" action="login.php" method="POST">
                                <div class="form-group">
                                    <div class="col-sm-1"></div>
                                    <label for="uname" class="col-sm-3 control-label">用户名</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="uname" placeholder="name">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-1"></div>
                                    <label for="upsd" class="col-sm-3 control-label">密码</label>
                                    <div class="col-sm-6">
                                        <input type="password" class="form-control" name="upsd" placeholder="password">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-4"></div>
                                    <input type="submit" class="btn btn-success col-sm-4" value="提交" name="u_submit">
                                    <div class="col-sm-4"></div>
                                </div>
                            </form>
                        </div>

                        <!-- Tab panes admin-->
                        <div role="tabpanel" class="tab-pane" id="admin">
                            <br><br>
                            <form class="form form-horizontal" action="login.php" method="POST">
                                <div class="form-group">
                                    <div class="col-sm-1"></div>
                                    <label for="aname" class="col-sm-3 control-label">管理员</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="aname" placeholder="name">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-1"></div>
                                    <label for="apsd" class="col-sm-3 control-label">密码</label>
                                    <div class="col-sm-6">
                                        <input type="password" class="form-control" name="apsd" placeholder="password">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-4"></div>
                                    <input type="submit" class="btn btn-success col-sm-4" value="提交" name="a_submit">
                                    <div class="col-sm-4"></div>
                                </div>
                            </form>
                        </div>
                    </div>

                </div>
            </div>
            <div class="span3"></div>
        </div>
    </div>
</body>

</html>